package com.xujl.mvcbind.ui.loading.model;

import com.xujl.fastlib.base.BaseModel;
import com.xujl.fastlib.base.IControl;
import com.xujl.mvcbind.bean.SplicingFragmentEntity;

import java.util.ArrayList;
import java.util.List;


/**
 * <pre>
 *     author : j
 *     e-mail : com
 *     time   : 2019/11/10
 *     desc   :
 *     version: 1.0
 * </pre>
 */

public class SplicingFragmentModel extends BaseModel {
    private List<SplicingFragmentEntity> data = new ArrayList<>();

    @Override
    public void init (IControl control) {
        data.add(new SplicingFragmentEntity(SplicingFragmentEntity.TYPE_IMAGE));
        data.add(new SplicingFragmentEntity(SplicingFragmentEntity.TYPE_TEXT));
        data.add(new SplicingFragmentEntity(SplicingFragmentEntity.TYPE_GRID));
        data.add(new SplicingFragmentEntity(SplicingFragmentEntity.TYPE_TEXT));
        data.add(new SplicingFragmentEntity(SplicingFragmentEntity.TYPE_IMAGE));
        data.add(new SplicingFragmentEntity(SplicingFragmentEntity.TYPE_TEXT));
        data.add(new SplicingFragmentEntity(SplicingFragmentEntity.TYPE_IMAGE));
        data.add(new SplicingFragmentEntity(SplicingFragmentEntity.TYPE_GRID));
    }

    public List<SplicingFragmentEntity> getData () {
        return data;
    }
}
